import os
import os.path

def visit(arg, dirname, names):
    for name in names:
        if name == "clean_small.py":
            continue;
        
        size = os.path.getsize(name)
        if size < 2048:
            os.remove(name)
            print "size=" + str(size) + " removed: " + name

print os.getcwd()
os.path.walk(".", visit, 0)    

print 'Done!'
